<extend name="Public:base" />
<block name="content">
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-info">
            <div class="panel-heading">增加分类</div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-12">
                        <table class="table table-hover">
                            <tr>
                                <td>#</td>
                                <td>角色名称</td>
                                <td>状态</td>
                                <td>操作</td>
                            </tr>
                            <volist name="roles" id="vo">
                                <tr>
                                    <td>{$vo.id}</td>
                                    <td>{$vo.title}</td>
                                    <td>
                                        <eq name="vo[status]" value="0">
                                            <a class="btn btn-danger btn-xs">禁用</a>
                                        <else/>
                                            <a class="btn btn-success btn-xs">可用</a>
                                        </eq>
                                    </td>
                                    <td>
                                        <a class="btn btn-warning btn-xs" href="{:U('Permission/editrole', array('id' => $vo['id']))}" role="button">修改</a>
                                        <a class="btn btn-danger btn-xs" href="{:U('Permission/removerole', array('id' => $vo['id']))}" role="button">删除</a>
                                    </td>
                                </tr>
                            </volist>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</block>